package com.kanqiubao.kq.activity.user;

import android.os.Bundle;

import com.kanqiubao.kq.R;
import com.kanqiubao.kq.activity.BaseActivity;
import com.kanqiubao.kq.adapter.user.UserRwListAdapter;

import java.util.ArrayList;
import java.util.List;

import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

public class UserRwActivity extends BaseActivity<String> {
    private RecyclerView mRecyclerView;
    private UserRwListAdapter mUserRwListAdapter;

    @Override
    protected void onActivityCreate(Bundle savedInstanceState) {
        mRecyclerView = findView(R.id.grid_id);
        mUserRwListAdapter = new UserRwListAdapter();
        mRecyclerView.setLayoutManager(new GridLayoutManager(this, 7));
        mRecyclerView.setAdapter(mUserRwListAdapter);
        List<String> ls = new ArrayList<>();
        ls.add("1天");
        ls.add("2天");
        ls.add("3天");
        ls.add("4天");
        ls.add("5天");
        ls.add("6天");
        ls.add("7天");
        mUserRwListAdapter.addData(ls);
    }

    @Override
    protected int getActivitylayout() {
        return R.layout.user_rw_main_layout;
    }

    @Override
    protected String getTitleText() {
        return "任务中心";
    }
}
